package app

import "sieve_admin_server/app/server"

var (
	AppInjector *Injector
)

func InitApp() error {

	injector, _, err := BuildInjector()
	if err != nil {
		return err
	}

	AppInjector = injector
	injector.Router.RegisterAPI()

	server.Register(injector.Router.UserAuthAPI.GetUserUid)
	return nil
}
